package com.gocom.imoss.common.Exception;

import java.util.List;

/**
 * Created by bjcwq on 14-10-10.
 */
public class BaseException  extends RuntimeException {
    protected Integer code;
    protected String msg;
    protected List errorObj;

    public List getErrorObj() {
        return errorObj;
    }

    public void setErrorObj(List errorObj) {
        this.errorObj = errorObj;
    }

    public BaseException(){
        this.code = 99999;
        this.msg = "未知错误";
    }

    public BaseException(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
